
from sklearn.datasets import make_blobs
from sklearn.ensemble import GradientBoostingClassifier
from sklearn.tree import DecisionTreeClassifier
from sklearn.model_selection import cross_val_score

X, y = make_blobs(n_samples=1000, n_features=10, centers=100)

dtc = DecisionTreeClassifier(max_depth=None)
scores_dtc = cross_val_score(dtc, X, y, cv=5)
print(scores_dtc)

gbc = GradientBoostingClassifier(n_estimators=100, max_depth=1)
scores_gbc = cross_val_score(gbc, X, y, cv=5)
print(scores_gbc)


